package com.feihua.starter.service.impl;

import com.feihua.starter.service.api.ApiHdbFeedBackPoService;
import com.feihua.starter.service.modules.hdb.dto.HdbFeedBackDto;
import com.feihua.starter.service.modules.hdb.po.HdbFeedBackPo;
import com.github.pagehelper.Page;
import feihua.jdbc.api.pojo.PageResultDto;
import feihua.jdbc.api.service.impl.ApiBaseServiceImpl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * This class was generated by MyBatis Generator.
 * @author revolver 2018-08-29 11:08:12
 */
@Service
public class ApiHdbFeedBackPoServiceImpl extends ApiBaseServiceImpl<HdbFeedBackPo, HdbFeedBackDto, String> implements ApiHdbFeedBackPoService {
    @Autowired
    com.feihua.starter.service.mapper.HdbFeedBackPoMapper hdbFeedBackPoMapper;

    public ApiHdbFeedBackPoServiceImpl() {
        super(HdbFeedBackDto.class);
    }

    @Override
    public PageResultDto<HdbFeedBackDto> searchHdbFeedBacksDsf(com.feihua.starter.service.modules.hdb.dto.SearchHdbFeedBacksConditionDto dto, feihua.jdbc.api.pojo.PageAndOrderbyParamDto pageAndOrderbyParamDto) {
        Page p = super.pageAndOrderbyStart(pageAndOrderbyParamDto);
        List<com.feihua.starter.service.modules.hdb.dto.HdbFeedBackDto> list = hdbFeedBackPoMapper.searchHdbFeedBacks(dto);
        return new PageResultDto(list, this.wrapPage(p));
    }
}